package pl.edu.pw.elka.tinyrepo.client.common;

import javax.swing.ImageIcon;
import javax.swing.tree.DefaultMutableTreeNode;

public class FileNode extends DefaultMutableTreeNode
{

	private static final long serialVersionUID = 1L;
	private final ImageIcon icon = new ImageIcon("images/page_white.png"); 
	private final String name;

	public FileNode(final String name)
	{
		this.name = name;
	}

	@Override
	public String toString()
	{
		return name;
	}
	
	public ImageIcon getIcon()
	{
		return icon;
	}
	
}
